-----------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\docs\WOD\cj_jlc_rep\rep_log.log
  log type:  text
 opened on:  27 Sep 2019, 17:00:13

. do "C:\Users\DL\AppData\Local\Temp\STD18a4_000000.tmp"

. *open the data file rep_data.dta
. *see file readme.pdf
. 
. 
. 
. ***Define samples:
. 
. **OT 39--Discussed by CJ?
. firthlogit cjdisc u_usp1  u_alconflict u_acconflict ///
> u_dissent c_intrev u_issuedummy  hasac ///
>  comp_ideo if aot==39 & u_ifp ==0 & u_ca==1, nolog

                                                Number of obs     =        651
                                                Wald chi2(8)      =      57.68
Penalized log likelihood = -364.21695           Prob > chi2       =     0.0000

------------------------------------------------------------------------------
      cjdisc |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      u_usp1 |   4.003988   1.433426     2.79   0.005     1.194524    6.813451
u_alconflict |   .1082937   .2050453     0.53   0.597    -.2935876     .510175
u_acconflict |   2.366157   .5789522     4.09   0.000     1.231432    3.500883
   u_dissent |   .8048278   .2920547     2.76   0.006      .232411    1.377245
    c_intrev |   .7116613   .2122493     3.35   0.001     .2956603    1.127662
u_issuedummy |  -.2824716   .3504353    -0.81   0.420    -.9693122    .4043691
       hasac |   3.081507    1.46466     2.10   0.035     .2108256    5.952188
   comp_ideo |  -.4294551   .1931096    -2.22   0.026     -.807943   -.0509671
       _cons |    -.16241   .1734782    -0.94   0.349     -.502421     .177601
------------------------------------------------------------------------------

. estimates store m39comp1

. 
. 
. **basic regression (Warren Discuss List):
. logit cv68_cjdisc cv68_u_usp1 cv68_u_alconflict cv68_u_acconflict   ///
> cv68_u_dissent cv68_c_intrev  cv68_u_issuedummy cv68_hasac ///
> cv68_comp_ideo if cv68_cert !=., nolog

Logistic regression                             Number of obs     =      1,067
                                                LR chi2(8)        =     265.98
                                                Prob > chi2       =     0.0000
Log likelihood = -514.42144                     Pseudo R2         =     0.2054

-----------------------------------------------------------------------------------
      cv68_cjdisc |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
      cv68_u_usp1 |   3.919204   1.054827     3.72   0.000      1.85178    5.986627
cv68_u_alconflict |   .8572962   .1647942     5.20   0.000     .5343055    1.180287
cv68_u_acconflict |   1.932327   .2607896     7.41   0.000     1.421189    2.443465
   cv68_u_dissent |   .6485842   .2164396     3.00   0.003     .2243704    1.072798
    cv68_c_intrev |   .5717989   .2031254     2.82   0.005     .1736805    .9699173
cv68_u_issuedummy |    .698921   .1750277     3.99   0.000     .3558731    1.041969
       cv68_hasac |   1.382314    .413394     3.34   0.001     .5720762    2.192551
   cv68_comp_ideo |  -.4215281   .1940076    -2.17   0.030    -.8017759   -.0412802
            _cons |  -2.196501   .1893963   -11.60   0.000    -2.567711   -1.825291
-----------------------------------------------------------------------------------

. est store m68comp1

. 
. 
. *82 CJ DL?
. logit cv82_cjdisc cv82_u_usp1  cv82_u_alconflict cv82_u_acconflict ///
> cv82_u_dissent cv82_c_intrev cv82_u_issuedummy  cv82_hasac ///
> cv82_comp_ideo if cv82_cert !=. & cv82_tagdocky==1, nolog

Logistic regression                             Number of obs     =      1,759
                                                LR chi2(8)        =     278.07
                                                Prob > chi2       =     0.0000
Log likelihood = -514.15725                     Pseudo R2         =     0.2129

-----------------------------------------------------------------------------------
      cv82_cjdisc |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
      cv82_u_usp1 |   1.507946   .3590563     4.20   0.000     .8042089    2.211684
cv82_u_alconflict |   .3293506   .2000218     1.65   0.100     -.062685    .7213861
cv82_u_acconflict |   1.731491   .2504239     6.91   0.000     1.240669    2.222313
   cv82_u_dissent |   .6406782    .210925     3.04   0.002     .2272727    1.054084
    cv82_c_intrev |    .455359   .1768622     2.57   0.010     .1087155    .8020026
cv82_u_issuedummy |   .2260176   .1723463     1.31   0.190     -.111775    .5638101
       cv82_hasac |   .6804957   .2307054     2.95   0.003     .2283213     1.13267
   cv82_comp_ideo |  -1.335145   .1833344    -7.28   0.000    -1.694474   -.9758159
            _cons |  -2.315579   .2059648   -11.24   0.000    -2.719262   -1.911895
-----------------------------------------------------------------------------------

. estimates store m82comp1

. *note that the OT 82 data is justice-level, so we condition on 
. *cv82_tagdocky, which selects one observation for each docket.
. 
. 
. est restore m39comp1
(results m39comp1 are active now)

. gen sm39comp1=e(sample)

. 
. est restore m68comp1
(results m68comp1 are active now)

. gen sm68comp1=e(sample)

. 
. est restore m82comp1
(results m82comp1 are active now)

. gen sm82comp1=e(sample)

. 
. 
. 
. 
. 
. 
. *create covariates from year-specific variables:  
. local ifcd if sm39comp1 | sm68comp1 | sm82comp1

. 
. gen __cjdl=min(cjdisc,cv68_cjdisc,cv82_cjdisc) `ifcd'
(18,342 missing values generated)

. gen __usp1=min(u_usp1,cv68_u_usp1,cv82_u_usp1) `ifcd' 
(18,342 missing values generated)

. gen __ir=min(c_intrev,cv68_c_intrev,cv82_c_intrev) `ifcd'
(18,342 missing values generated)

. gen __alc=min(u_alconflict,cv68_u_alconflict,cv82_u_alconflict) `ifcd'
(18,342 missing values generated)

. gen __acc=min(u_acconflict,cv68_u_acconflict,cv82_u_acconflict) `ifcd'
(18,342 missing values generated)

. gen __diss=min(u_dissent,cv68_u_dissent,cv82_u_dissent) `ifcd'
(18,342 missing values generated)

. gen __iss=min(u_issuedummy,cv68_u_issuedummy,cv82_u_issuedummy) `ifcd'
(18,342 missing values generated)

. gen __ci=min(comp_ideo,cv68_comp_ideo,cv82_comp_ideo) `ifcd'
(18,342 missing values generated)

. gen __ab=min(hasac,cv68_hasac,cv82_hasac) `ifcd'
(18,342 missing values generated)

. 
. 
. gen __uterm=39 if aot==39
(20,875 missing values generated)

. replace __uterm=68 if czobs
(1,354 real changes made)

. replace __uterm=82 if cwobs
(18,540 real changes made)

. 
. *create group variables for regressions/sdcasepick
. gen __gr3968=0 if aot==39
(20,875 missing values generated)

. replace __gr3968=1 if czobs
(1,354 real changes made)

. 
. gen __gr3982=0 if aot==39
(20,875 missing values generated)

. replace  __gr3982=1 if cwobs
(18,540 real changes made)

. 
. gen __gr6882=0 if czobs
(20,465 missing values generated)

. replace __gr6882=1 if cwobs
(18,540 real changes made)

. 
. 
. **descriptives: relative frequency of covariates, by term.** (Table 1)
. foreach var of varlist  __usp1 __ir __alc __acc __diss __iss __ci __ab{
  2. bysort __uterm: summ `var' if sm39comp1 | sm68comp1 | sm82comp1,det
  3. }

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                           __usp1
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            0                      Mean           .0860215
                        Largest       Std. Dev.      .2806114
75%            0              1
90%            0              1       Variance       .0787428
95%            1              1       Skewness       2.952815
99%            1              1       Kurtosis       9.719118

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                           __usp1
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            0                      Mean           .0281162
                        Largest       Std. Dev.      .1653824
75%            0              1
90%            0              1       Variance       .0273513
95%            0              1       Skewness       5.709255
99%            1              1       Kurtosis        33.5956

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                           __usp1
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            0                      Mean           .0272882
                        Largest       Std. Dev.      .1629683
75%            0              1
90%            0              1       Variance       .0265587
95%            0              1       Skewness       5.802921
99%            1              1       Kurtosis       34.67389

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                           __usp1
-------------------------------------------------------------
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                            __ir
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            0                      Mean           .2534562
                        Largest       Std. Dev.      .4353243
75%            1              1
90%            1              1       Variance       .1895073
95%            1              1       Skewness       1.133561
99%            1              1       Kurtosis       2.284961

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                            __ir
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            0                      Mean           .1996251
                        Largest       Std. Dev.       .399906
75%            0              1
90%            1              1       Variance       .1599248
95%            1              1       Skewness       1.502932
99%            1              1       Kurtosis       3.258804

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                            __ir
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            0                      Mean           .2512791
                        Largest       Std. Dev.       .433872
75%            1              1
90%            1              1       Variance       .1882449
95%            1              1       Skewness       1.146843
99%            1              1       Kurtosis       2.315249

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                            __ir
-------------------------------------------------------------
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                            __alc
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            0                      Mean           .2857143
                        Largest       Std. Dev.      .4521013
75%            1              1
90%            1              1       Variance       .2043956
95%            1              1       Skewness       .9486833
99%            1              1       Kurtosis            1.9

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                            __alc
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            1                      Mean           .5304592
                        Largest       Std. Dev.      .4993054
75%            1              1
90%            1              1       Variance       .2493059
95%            1              1       Skewness      -.1220636
99%            1              1       Kurtosis         1.0149

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                            __alc
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            1                      Mean           .6890279
                        Largest       Std. Dev.      .4630231
75%            1              1
90%            1              1       Variance       .2143904
95%            1              1       Skewness      -.8167265
99%            1              1       Kurtosis       1.667042

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                            __alc
-------------------------------------------------------------
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                            __acc
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            0                      Mean            .093702
                        Largest       Std. Dev.      .2916378
75%            0              1
90%            0              1       Variance       .0850526
95%            1              1       Skewness       2.788462
99%            1              1       Kurtosis       8.775521

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                            __acc
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            0                      Mean           .1105904
                        Largest       Std. Dev.      .3137714
75%            0              1
90%            1              1       Variance       .0984525
95%            1              1       Skewness       2.483287
99%            1              1       Kurtosis       7.166714

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                            __acc
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            0                      Mean           .0591245
                        Largest       Std. Dev.      .2359246
75%            0              1
90%            0              1       Variance       .0556604
95%            1              1       Skewness       3.738489
99%            1              1       Kurtosis        14.9763

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                            __acc
-------------------------------------------------------------
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                           __diss
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            0                      Mean           .1213518
                        Largest       Std. Dev.      .3267867
75%            0              1
90%            1              1       Variance       .1067896
95%            1              1       Skewness       2.319185
99%            1              1       Kurtosis       6.378618

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                           __diss
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            0                      Mean           .1368322
                        Largest       Std. Dev.      .3438313
75%            0              1
90%            1              1       Variance         .11822
95%            1              1       Skewness       2.113467
99%            1              1       Kurtosis       5.466743

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                           __diss
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            0                      Mean           .1176805
                        Largest       Std. Dev.      .3223211
75%            0              1
90%            1              1       Variance       .1038909
95%            1              1       Skewness       2.372965
99%            1              1       Kurtosis       6.630961

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                           __diss
-------------------------------------------------------------
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                            __iss
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            0                      Mean           .0691244
                        Largest       Std. Dev.      .2538607
75%            0              1
90%            0              1       Variance       .0644452
95%            1              1       Skewness       3.397194
99%            1              1       Kurtosis       12.54092

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                            __iss
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            0                      Mean           .4807873
                        Largest       Std. Dev.       .499865
75%            1              1
90%            1              1       Variance        .249865
95%            1              1       Skewness       .0769078
99%            1              1       Kurtosis       1.005915

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                            __iss
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            1                      Mean           .5116543
                        Largest       Std. Dev.      .5000063
75%            1              1
90%            1              1       Variance       .2500063
95%            1              1       Skewness      -.0466301
99%            1              1       Kurtosis       1.002174

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                            __iss
-------------------------------------------------------------
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                            __ci
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            1                      Mean           .5837174
                        Largest       Std. Dev.      .4933206
75%            1              1
90%            1              1       Variance       .2433652
95%            1              1       Skewness      -.3396644
99%            1              1       Kurtosis       1.115372

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                            __ci
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            0                      Mean           .3261481
                        Largest       Std. Dev.       .469022
75%            1              1
90%            1              1       Variance       .2199817
95%            1              1       Skewness       .7416856
99%            1              1       Kurtosis       1.550098

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                            __ci
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            1                      Mean           .6179648
                        Largest       Std. Dev.      .4860233
75%            1              1
90%            1              1       Variance       .2362186
95%            1              1       Skewness      -.4855665
99%            1              1       Kurtosis       1.235775

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                            __ci
-------------------------------------------------------------
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

                            __ab
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs                 651
25%            0              0       Sum of Wgt.         651

50%            0                      Mean           .0168971
                        Largest       Std. Dev.       .128985
75%            0              1
90%            0              1       Variance       .0166371
95%            0              1       Skewness         7.4966
99%            1              1       Kurtosis       57.19901

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

                            __ab
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,067
25%            0              0       Sum of Wgt.       1,067

50%            0                      Mean           .0337395
                        Largest       Std. Dev.      .1806424
75%            0              1
90%            0              1       Variance       .0326317
95%            0              1       Skewness       5.164669
99%            1              1       Kurtosis       27.67381

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

                            __ab
-------------------------------------------------------------
      Percentiles      Smallest
 1%            0              0
 5%            0              0
10%            0              0       Obs               1,759
25%            0              0       Sum of Wgt.       1,759

50%            0                      Mean           .0795907
                        Largest       Std. Dev.      .2707354
75%            0              1
90%            0              1       Variance       .0732977
95%            1              1       Skewness       3.106567
99%            1              1       Kurtosis       10.65076

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .

                            __ab
-------------------------------------------------------------
no observations


. 
. **descriptives: frequencies.**
. foreach var of varlist  __usp1 __ir __alc __acc __diss __iss __ci __ab{
  2. bysort __uterm: tab __cjdl `var' if sm39comp1 | sm68comp1 | sm82comp1
  3. }

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |        __usp1
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       302          0 |       302 
         1 |       293         56 |       349 
-----------+----------------------+----------
     Total |       595         56 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |        __usp1
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       751          1 |       752 
         1 |       286         29 |       315 
-----------+----------------------+----------
     Total |     1,037         30 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |        __usp1
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |     1,525         19 |     1,544 
         1 |       186         29 |       215 
-----------+----------------------+----------
     Total |     1,711         48 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |         __ir
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       254         48 |       302 
         1 |       232        117 |       349 
-----------+----------------------+----------
     Total |       486        165 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |         __ir
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       628        124 |       752 
         1 |       226         89 |       315 
-----------+----------------------+----------
     Total |       854        213 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |         __ir
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |     1,205        339 |     1,544 
         1 |       112        103 |       215 
-----------+----------------------+----------
     Total |     1,317        442 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |         __alc
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       228         74 |       302 
         1 |       237        112 |       349 
-----------+----------------------+----------
     Total |       465        186 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |         __alc
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       420        332 |       752 
         1 |        81        234 |       315 
-----------+----------------------+----------
     Total |       501        566 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |         __alc
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       505      1,039 |     1,544 
         1 |        42        173 |       215 
-----------+----------------------+----------
     Total |       547      1,212 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |         __acc
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       299          3 |       302 
         1 |       291         58 |       349 
-----------+----------------------+----------
     Total |       590         61 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |         __acc
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       727         25 |       752 
         1 |       222         93 |       315 
-----------+----------------------+----------
     Total |       949        118 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |         __acc
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |     1,499         45 |     1,544 
         1 |       156         59 |       215 
-----------+----------------------+----------
     Total |     1,655        104 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |        __diss
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       282         20 |       302 
         1 |       290         59 |       349 
-----------+----------------------+----------
     Total |       572         79 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |        __diss
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       673         79 |       752 
         1 |       248         67 |       315 
-----------+----------------------+----------
     Total |       921        146 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |        __diss
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |     1,394        150 |     1,544 
         1 |       158         57 |       215 
-----------+----------------------+----------
     Total |     1,552        207 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |         __iss
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       278         24 |       302 
         1 |       328         21 |       349 
-----------+----------------------+----------
     Total |       606         45 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |         __iss
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       418        334 |       752 
         1 |       136        179 |       315 
-----------+----------------------+----------
     Total |       554        513 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |         __iss
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       754        790 |     1,544 
         1 |       105        110 |       215 
-----------+----------------------+----------
     Total |       859        900 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |         __ci
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |        97        205 |       302 
         1 |       174        175 |       349 
-----------+----------------------+----------
     Total |       271        380 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |         __ci
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       483        269 |       752 
         1 |       236         79 |       315 
-----------+----------------------+----------
     Total |       719        348 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |         __ci
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       515      1,029 |     1,544 
         1 |       157         58 |       215 
-----------+----------------------+----------
     Total |       672      1,087 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 39

           |         __ab
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       302          0 |       302 
         1 |       338         11 |       349 
-----------+----------------------+----------
     Total |       640         11 |       651 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 68

           |         __ab
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |       739         13 |       752 
         1 |       292         23 |       315 
-----------+----------------------+----------
     Total |     1,031         36 |     1,067 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = 82

           |         __ab
    __cjdl |         0          1 |     Total
-----------+----------------------+----------
         0 |     1,449         95 |     1,544 
         1 |       170         45 |       215 
-----------+----------------------+----------
     Total |     1,619        140 |     1,759 

-----------------------------------------------------------------------------------------------------------------------------------------------
-> __uterm = .
no observations


. 
. 
. *********************39 ("Group 0") / 68 ("Group 1")****************************
. gen distance=. //to store descriptives of distance 
(21,819 missing values generated)

. local di=1 //same

. 
. *Regression (not presented in paper) on which Table 2 results are based:
. firthlogit __cjdl __gr3968##(__usp1 __ir __alc __acc __diss __iss __ci __ab) ///
> if  sm68comp1 | sm39comp1 

initial:       penalized log likelihood = -1117.3158
rescale:       penalized log likelihood = -1117.3158
Iteration 0:   penalized log likelihood = -1117.3158  
Iteration 1:   penalized log likelihood =  -872.5427  
Iteration 2:   penalized log likelihood = -865.85516  
Iteration 3:   penalized log likelihood = -865.33501  
Iteration 4:   penalized log likelihood = -865.31597  
Iteration 5:   penalized log likelihood = -865.31595  

                                                Number of obs     =      1,718
                                                Wald chi2(17)     =     263.75
Penalized log likelihood = -865.31595           Prob > chi2       =     0.0000

---------------------------------------------------------------------------------
         __cjdl |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------+----------------------------------------------------------------
     1.__gr3968 |  -2.014758   .2558543    -7.87   0.000    -2.516223   -1.513293
       1.__usp1 |   4.003981   1.433446     2.79   0.005     1.194479    6.813484
         1.__ir |   .7116613   .2122493     3.35   0.001     .2956604    1.127662
        1.__alc |   .1082939   .2050452     0.53   0.597    -.2935874    .5101751
        1.__acc |   2.366156   .5789517     4.09   0.000     1.231432    3.500881
       1.__diss |   .8048278   .2920547     2.76   0.006     .2324111    1.377244
        1.__iss |  -.2824718   .3504352    -0.81   0.420    -.9693122    .4043685
         1.__ci |  -.4294553   .1931096    -2.22   0.026    -.8079432   -.0509674
         1.__ab |   3.081504   1.464649     2.10   0.035     .2108457    5.952163
                |
__gr3968#__usp1 |
           1 1  |  -.4732435   1.683303    -0.28   0.779    -3.772457     2.82597
                |
  __gr3968#__ir |
           1 1  |  -.1446021   .2928099    -0.49   0.621     -.718499    .4292948
                |
 __gr3968#__alc |
           1 1  |   .7400641   .2624478     2.82   0.005     .2256759    1.254452
                |
 __gr3968#__acc |
           1 1  |  -.4622253   .6339407    -0.73   0.466    -1.704726    .7802757
                |
__gr3968#__diss |
           1 1  |  -.1596251   .3626424    -0.44   0.660    -.8703911    .5511409
                |
 __gr3968#__iss |
           1 1  |   .9729501   .3912186     2.49   0.013     .2061758    1.739724
                |
  __gr3968#__ci |
           1 1  |   .0138781   .2727931     0.05   0.959    -.5207866    .5485428
                |
  __gr3968#__ab |
           1 1  |  -1.719194   1.520203    -1.13   0.258    -4.698737    1.260349
                |
          _cons |  -.1624098   .1734782    -0.94   0.349    -.5024207    .1776011
---------------------------------------------------------------------------------

. 
. tempvar p

. predict `p' if e(sample)
(20,101 missing values generated)

. cap gen pr3968= (exp(`p'))/(1+exp(`p'))

. 
. 
. *Partial Table 2 Results (see readme.pdf for interpretation):
. local vl __usp1 __ir __alc __acc __diss __iss __ci __ab

. 
. foreach v of local vl{
  2. sdcasepick `v', prv(pr3968) prlb(.45) prub(.55) gr(__gr3968) ///
> expression(exp(predict(xb))/(1+exp(predict(xb)))) sec
  3. replace distance=`r(dist)' in `di'
  4. local di=`di'+1
  5. }

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__usp1) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.498     0.105     4.733     0.000     0.292     0.704    95.000 
     Group 1 |    0.487     0.058     8.455     0.000     0.374     0.600    95.000 
    2nd Diff |   -0.011     0.120    -0.091     0.928    -0.246     0.224    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 683
Group==1: 1047
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __ir __alc __acc __diss __iss __ci __ab
Distance Between Obss: .0004402995109558
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ir) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.174     0.050     3.478     0.001     0.076     0.273    95.000 
     Group 1 |    0.140     0.048     2.893     0.004     0.045     0.235    95.000 
    2nd Diff |   -0.035     0.070    -0.495     0.620    -0.171     0.102    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 5
Group==1: 1328
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __usp1 __alc __acc __diss __iss __ci __ab
Distance Between Obss: .0094585716724396
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__alc) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.027     0.051     0.527     0.598    -0.073     0.127    95.000 
     Group 1 |    0.205     0.040     5.064     0.000     0.125     0.284    95.000 
    2nd Diff |    0.178     0.065     2.724     0.006     0.050     0.305    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 5
Group==1: 1328
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __usp1 __ir __acc __diss __iss __ci __ab
Distance Between Obss: .0094585716724396
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__acc) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.426     0.089     4.784     0.000     0.251     0.600    95.000 
     Group 1 |    0.380     0.046     8.322     0.000     0.290     0.469    95.000 
    2nd Diff |   -0.046     0.100    -0.461     0.645    -0.242     0.150    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 683
Group==1: 1047
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __usp1 __ir __alc __diss __iss __ci __ab
Distance Between Obss: .0004402995109558
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__diss) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.193     0.065     2.980     0.003     0.066     0.320    95.000 
     Group 1 |    0.157     0.051     3.098     0.002     0.058     0.257    95.000 
    2nd Diff |   -0.035     0.082    -0.430     0.667    -0.197     0.126    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 1047
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __usp1 __ir __alc __acc __iss __ci __ab
Distance Between Obss: .0042848885059357
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__iss) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |   -0.070     0.086    -0.816     0.415    -0.238     0.098    95.000 
     Group 1 |    0.167     0.041     4.080     0.000     0.087     0.247    95.000 
    2nd Diff |    0.236     0.095     2.493     0.013     0.051     0.422    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 966
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __usp1 __ir __alc __acc __diss __ci __ab
Distance Between Obss: .0089825391769409
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ci) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |   -0.105     0.048    -2.200     0.028    -0.199    -0.011    95.000 
     Group 1 |   -0.102     0.046    -2.194     0.028    -0.192    -0.011    95.000 
    2nd Diff |    0.004     0.067     0.053     0.958    -0.127     0.134    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 1047
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __usp1 __ir __alc __acc __diss __iss __ab
Distance Between Obss: .0042848885059357
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ab) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.470     0.113     4.158     0.000     0.249     0.692    95.000 
     Group 1 |    0.302     0.072     4.212     0.000     0.162     0.443    95.000 
    2nd Diff |   -0.168     0.134    -1.257     0.209    -0.431     0.094    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 683
Group==1: 1047
Group Variable: __gr3968
Distance (Prediction) Variable: pr3968
Rhs Vars: __gr3968 __usp1 __ir __alc __acc __diss __iss __ci
Distance Between Obss: .0004402995109558
(1 real change made)

. 
. 
. 
. *********************39 ("Group 0") / 82 ("Group 1")****************************
. 
. *Regression (not presented in paper) on which Table 2 results are based:
. firthlogit __cjdl __gr3982##(__usp1 __ir __alc __acc __diss __iss __ci __ab) ///
> if sm39comp1 | sm82comp1 

initial:       penalized log likelihood = -1282.5728
rescale:       penalized log likelihood = -1282.5728
Iteration 0:   penalized log likelihood = -1282.5728  
Iteration 1:   penalized log likelihood = -896.24132  
Iteration 2:   penalized log likelihood = -864.87531  
Iteration 3:   penalized log likelihood = -863.50549  
Iteration 4:   penalized log likelihood = -863.47556  
Iteration 5:   penalized log likelihood = -863.47545  
Iteration 6:   penalized log likelihood = -863.47545  

                                                Number of obs     =      2,410
                                                Wald chi2(17)     =     440.95
Penalized log likelihood = -863.47545           Prob > chi2       =     0.0000

---------------------------------------------------------------------------------
         __cjdl |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------+----------------------------------------------------------------
     1.__gr3982 |  -2.132996   .2680797    -7.96   0.000    -2.658423   -1.607569
       1.__usp1 |   4.004037   1.433439     2.79   0.005     1.194548    6.813525
         1.__ir |   .7116614   .2122493     3.35   0.001     .2956604    1.127662
        1.__alc |   .1082939   .2050453     0.53   0.597    -.2935875    .5101754
        1.__acc |   2.366157   .5789513     4.09   0.000     1.231433     3.50088
       1.__diss |   .8048277   .2920547     2.76   0.006      .232411    1.377244
        1.__iss |  -.2824712   .3504356    -0.81   0.420    -.9693124      .40437
         1.__ci |  -.4294548   .1931097    -2.22   0.026    -.8079429   -.0509667
         1.__ab |   3.081496    1.46464     2.10   0.035     .2108545    5.952138
                |
__gr3982#__usp1 |
           1 1  |  -2.515324   1.476641    -1.70   0.088    -5.409488    .3788403
                |
  __gr3982#__ir |
           1 1  |  -.2567482   .2756227    -0.93   0.352    -.7969588    .2834624
                |
 __gr3982#__alc |
           1 1  |   .2135855   .2854274     0.75   0.454     -.345842     .773013
                |
 __gr3982#__acc |
           1 1  |  -.6536865   .6299211    -1.04   0.299    -1.888309    .5809361
                |
__gr3982#__diss |
           1 1  |  -.1649187   .3594829    -0.46   0.646    -.8694922    .5396549
                |
 __gr3982#__iss |
           1 1  |   .5039545   .3900731     1.29   0.196    -.2605747    1.268484
                |
  __gr3982#__ci |
           1 1  |  -.8928714   .2654643    -3.36   0.001    -1.413172   -.3725709
                |
  __gr3982#__ab |
           1 1  |  -2.400205   1.482423    -1.62   0.105    -5.305701    .5052899
                |
          _cons |  -.1624102   .1734782    -0.94   0.349    -.5024213    .1776009
---------------------------------------------------------------------------------

. tempvar p

. predict `p' if e(sample)
(19,409 missing values generated)

. cap gen pr3982= (exp(`p'))/(1+exp(`p'))

. 
. *Partial Table 2 Results (see readme.pdf for interpretation):
. local vl __usp1 __ir __alc __acc __diss __iss __ci __ab

. foreach v of local vl{
  2. sdcasepick `v', prv(pr3982) prlb(.45) prub(.55) gr(__gr3982) ///
> expression(exp(predict(xb))/(1+exp(predict(xb)))) sec
  3. replace distance=`r(dist)' in `di'
  4. local di=`di'+1
  5. }

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__usp1) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.495     0.063     7.813     0.000     0.371     0.619    95.000 
     Group 1 |    0.320     0.064     4.966     0.000     0.194     0.446    95.000 
    2nd Diff |   -0.175     0.090    -1.937     0.053    -0.352     0.002    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 6167
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __ir __alc __acc __diss __iss __ci __ab
Distance Between Obss: .0036337077617645
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ir) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.172     0.049     3.489     0.000     0.075     0.269    95.000 
     Group 1 |    0.112     0.043     2.606     0.009     0.028     0.197    95.000 
    2nd Diff |   -0.060     0.066    -0.915     0.360    -0.188     0.068    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 6167
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __usp1 __alc __acc __diss __iss __ci __ab
Distance Between Obss: .0036337077617645
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__alc) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.027     0.051     0.527     0.598    -0.073     0.127    95.000 
     Group 1 |    0.080     0.049     1.627     0.104    -0.016     0.177    95.000 
    2nd Diff |    0.053     0.071     0.750     0.453    -0.086     0.193    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 5
Group==1: 4514
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __usp1 __ir __acc __diss __iss __ci __ab
Distance Between Obss: .0092041194438934
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__acc) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.423     0.067     6.274     0.000     0.291     0.556    95.000 
     Group 1 |    0.351     0.061     5.745     0.000     0.231     0.470    95.000 
    2nd Diff |   -0.073     0.091    -0.799     0.424    -0.251     0.106    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 4360
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __usp1 __ir __alc __diss __iss __ci __ab
Distance Between Obss: .0060512721538544
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__diss) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.193     0.065     2.980     0.003     0.066     0.320    95.000 
     Group 1 |    0.156     0.049     3.166     0.002     0.059     0.252    95.000 
    2nd Diff |   -0.037     0.081    -0.458     0.647    -0.197     0.122    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 6167
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __usp1 __ir __alc __acc __iss __ci __ab
Distance Between Obss: .0036337077617645
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__iss) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |   -0.070     0.086    -0.816     0.415    -0.238     0.098    95.000 
     Group 1 |    0.055     0.043     1.299     0.194    -0.028     0.139    95.000 
    2nd Diff |    0.125     0.096     1.309     0.191    -0.062     0.312    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 4360
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __usp1 __ir __alc __acc __diss __ci __ab
Distance Between Obss: .0060512721538544
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ci) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |   -0.105     0.048    -2.200     0.028    -0.199    -0.011    95.000 
     Group 1 |   -0.286     0.044    -6.450     0.000    -0.373    -0.199    95.000 
    2nd Diff |   -0.181     0.065    -2.778     0.005    -0.309    -0.053    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 6167
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __usp1 __ir __alc __acc __diss __iss __ab
Distance Between Obss: .0036337077617645
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ab) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.467     0.081     5.746     0.000     0.308     0.627    95.000 
     Group 1 |    0.165     0.053     3.086     0.002     0.060     0.270    95.000 
    2nd Diff |   -0.302     0.097    -3.105     0.002    -0.493    -0.111    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 27
Group==1: 6167
Group Variable: __gr3982
Distance (Prediction) Variable: pr3982
Rhs Vars: __gr3982 __usp1 __ir __alc __acc __diss __iss __ci
Distance Between Obss: .0036337077617645
(1 real change made)

. 
. 
. 
. *********************68 ("Group 0") / 82 ("Group 1")****************************
. 
. *Regression (not presented in paper) on which Table 2 results are based:
. logit __cjdl __gr6882##(__usp1 __ir __alc __acc __diss __iss __ci __ab) ///
> if sm68comp1 | sm82comp1 

Iteration 0:   log likelihood = -1363.9475  
Iteration 1:   log likelihood = -1057.3181  
Iteration 2:   log likelihood = -1029.9113  
Iteration 3:   log likelihood = -1028.5829  
Iteration 4:   log likelihood = -1028.5787  
Iteration 5:   log likelihood = -1028.5787  

Logistic regression                             Number of obs     =      2,826
                                                LR chi2(17)       =     670.74
                                                Prob > chi2       =     0.0000
Log likelihood = -1028.5787                     Pseudo R2         =     0.2459

---------------------------------------------------------------------------------
         __cjdl |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------+----------------------------------------------------------------
     1.__gr6882 |  -.1190774   .2798079    -0.43   0.670    -.6674908    .4293359
       1.__usp1 |   3.919204   1.054827     3.72   0.000      1.85178    5.986627
         1.__ir |   .5717989   .2031254     2.82   0.005     .1736805    .9699173
        1.__alc |   .8572962   .1647942     5.20   0.000     .5343055    1.180287
        1.__acc |   1.932327   .2607896     7.41   0.000     1.421189    2.443465
       1.__diss |   .6485842   .2164396     3.00   0.003     .2243704    1.072798
        1.__iss |    .698921   .1750277     3.99   0.000     .3558731    1.041969
         1.__ci |  -.4215281   .1940076    -2.17   0.030    -.8017759   -.0412802
         1.__ab |   1.382314    .413394     3.34   0.001     .5720762    2.192551
                |
__gr6882#__usp1 |
           1 1  |  -2.411257   1.114263    -2.16   0.030    -4.595173   -.2273418
                |
  __gr6882#__ir |
           1 1  |  -.1164399   .2693328    -0.43   0.666    -.6443225    .4114427
                |
 __gr6882#__alc |
           1 1  |  -.5279457   .2591638    -2.04   0.042    -1.035897    -.019994
                |
 __gr6882#__acc |
           1 1  |  -.2008357   .3615568    -0.56   0.579    -.9094741    .5078026
                |
__gr6882#__diss |
           1 1  |  -.0079061   .3022176    -0.03   0.979    -.6002417    .5844296
                |
 __gr6882#__iss |
           1 1  |  -.4729034   .2456378    -1.93   0.054    -.9543446    .0085378
                |
  __gr6882#__ci |
           1 1  |  -.9136168   .2669278    -3.42   0.001    -1.436786   -.3904479
                |
  __gr6882#__ab |
           1 1  |  -.7018179   .4734127    -1.48   0.138     -1.62969     .226054
                |
          _cons |  -2.196501   .1893963   -11.60   0.000    -2.567711   -1.825291
---------------------------------------------------------------------------------

. cap predict pr6882

. 
. *Partial Table 2 Results (see readme.pdf for interpretation):
. local vl __usp1 __ir __alc __acc __diss __iss __ci __ab

. foreach v of local vl{
  2. sdcasepick `v', prv(pr6882) prlb(.45) prub(.55) gr(__gr6882) sec
  3. replace distance=`r(dist)' in `di'
  4. local di=`di'+1
  5. }

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__usp1) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.477     0.083     5.777     0.000     0.315     0.639    95.000 
     Group 1 |    0.317     0.061     5.179     0.000     0.197     0.437    95.000 
    2nd Diff |   -0.160     0.103    -1.559     0.119    -0.362     0.041    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 1435
Group==1: 7995
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __ir __alc __acc __diss __iss __ci __ab
Distance Between Obss: .0007758736610413
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ir) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.141     0.049     2.899     0.004     0.046     0.236    95.000 
     Group 1 |    0.113     0.044     2.595     0.009     0.028     0.198    95.000 
    2nd Diff |   -0.028     0.065    -0.427     0.669    -0.156     0.100    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 1328
Group==1: 4514
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __usp1 __alc __acc __diss __iss __ci __ab
Distance Between Obss: .0029565989971161
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__alc) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.206     0.041     5.059     0.000     0.126     0.286    95.000 
     Group 1 |    0.082     0.050     1.653     0.098    -0.015     0.179    95.000 
    2nd Diff |   -0.124     0.064    -1.931     0.053    -0.250     0.002    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 1328
Group==1: 4514
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __usp1 __ir __acc __diss __iss __ci __ab
Distance Between Obss: .0029565989971161
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__acc) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.376     0.072     5.247     0.000     0.235     0.516    95.000 
     Group 1 |    0.352     0.062     5.680     0.000     0.231     0.474    95.000 
    2nd Diff |   -0.023     0.095    -0.245     0.806    -0.209     0.162    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 966
Group==1: 4360
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __usp1 __ir __alc __diss __iss __ci __ab
Distance Between Obss: .0018973350524902
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__diss) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.151     0.051     2.963     0.003     0.051     0.250    95.000 
     Group 1 |    0.149     0.048     3.104     0.002     0.055     0.243    95.000 
    2nd Diff |   -0.002     0.070    -0.028     0.978    -0.139     0.135    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 1062
Group==1: 2841
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __usp1 __ir __alc __acc __iss __ci __ab
Distance Between Obss: .0017932057380676
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__iss) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.161     0.040     3.983     0.000     0.082     0.240    95.000 
     Group 1 |    0.055     0.042     1.307     0.191    -0.028     0.138    95.000 
    2nd Diff |   -0.106     0.058    -1.816     0.069    -0.221     0.008    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 1062
Group==1: 2841
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __usp1 __ir __alc __acc __diss __ci __ab
Distance Between Obss: .0017932057380676
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ci) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |   -0.104     0.047    -2.217     0.027    -0.196    -0.012    95.000 
     Group 1 |   -0.293     0.041    -7.170     0.000    -0.373    -0.213    95.000 
    2nd Diff |   -0.189     0.062    -3.041     0.002    -0.311    -0.067    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 1050
Group==1: 7995
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __usp1 __ir __alc __acc __diss __iss __ab
Distance Between Obss: .0020054578781128
(1 real change made)

EFFECT SIZES BY GROUP AND SECOND DIFFERENCE (__ab) 

             |   effect        se    zvalue    pvalue        ll        ul       lvl 
-------------+----------------------------------------------------------------------
Effect       |                                                                      
     Group 0 |    0.305     0.072     4.238     0.000     0.164     0.446    95.000 
     Group 1 |    0.166     0.054     3.047     0.002     0.059     0.272    95.000 
    2nd Diff |   -0.139     0.090    -1.545     0.122    -0.316     0.037    95.000 

CLOSEST PAIR OF OBSERVATIONS

Group==0: 1047
Group==1: 20606
Group Variable: __gr6882
Distance (Prediction) Variable: pr6882
Rhs Vars: __gr6882 __usp1 __ir __alc __acc __diss __iss __ci
Distance Between Obss: .0033577978610992
(1 real change made)

. 
. summ distance, detail //descriptives for distance

                          distance
-------------------------------------------------------------
      Percentiles      Smallest
 1%     .0004403       .0004403
 5%     .0004403       .0004403
10%     .0004403       .0004403       Obs                  24
25%     .0018453       .0007759       Sum of Wgt.          24

50%     .0036337                      Mean           .0039501
                        Largest       Std. Dev.      .0028729
75%     .0051681       .0089825
90%     .0092041       .0092041       Variance       8.25e-06
95%     .0094586       .0094586       Skewness        .796694
99%     .0094586       .0094586       Kurtosis       2.609575

. drop distance

. 
end of do-file

. log close
      name:  <unnamed>
       log:  C:\docs\WOD\cj_jlc_rep\rep_log.log
  log type:  text
 closed on:  27 Sep 2019, 17:02:39
-----------------------------------------------------------------------------------------------------------------------------------------------
